public class Main {
    public static void main(String[] args) {
        String str="abcd";
        char[] arr=str.toCharArray();
        /*for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }*/
        for (int i = 0; i < str.length(); i++) {
            System.out.println(str.charAt(i));
        }
    }
}